<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style>
			div{
				height:1300px;
			}
		</style>
		<script type="text/javascript" src="../js/jquery-1.12.4.js" ></script>
		<script>
			$(function(){
				$(window).scroll(function(){
					
					var p = $("#formReg");
					var offset = p.offset();
					p.css("position","fixed"
					);
					});
			});

		</script>
	</head>
	<body>
		<div>
			<form action="#" method="get" id="formReg">
			<p><input type="search"/><input type="submit" value="搜索"/></p>
			</form>
		</div>
	</body>
</html>
